class jisuan:
    def add(self,n1,n2):
        return n1+n2
    def dec(self,n1,n2):
        return n1-n2
    def chen(self,n1,n2):
        return n1 * n2
    def chu(self,n1,n2):
        return n1/n2
c1 = int(input("输入第一个数字:"))
c3 = input("输入运算符:")
c2 = int(input("输入第二个数字:"))
j = jisuan()
if c3=="+":
    i = j.add(c1, c2)
    z = c1+c2
    print(c1,"+",c2,"=",j.add(c1, c2))
elif c3 == "-":
    i = j.dec(c1, c2)
    z = c1 - c2
    print(c1, "-", c2, "=",j.dec(c1,c2))
elif c3 == "*":
    i = j.chen(c1, c2)
    z = c1 * c2
    print(c1, "*", c2, "=",j.chen(c1,c2))
elif c3 == "/":
    i = j.chu(c1, c2)

    z = c1 / c2
    print(c1, "/", c2, "={:.2f}".format(i))
else:print("非法")

if i == z:
    print("用例通过")
else:print("用例不通过")

